import Koa from 'koa'


export async function serve_5000() {

   
    const app = new Koa()
    app.use(async (ctx:any, next:any) => {
        await next();
        ctx.response.type = 'text/html';
        ctx.response.body = '<h1>Test port 5000</h1>';
    });
    app.listen(5000)
}


export async function serve_6000() {
    // const app = new Koa()
    // app.use(async (ctx, next) => {
    //     await next();
    //     ctx.response.type = 'text/html';
    //     ctx.response.body = '<h1>Test port 6000</h1>';
    // });

    // app.listen(6001)
}